/*
package com.wwy.monitor.config;

import com.alibaba.ihr.amdplatform.service.api.AmdpDataQueryService;
import com.alibaba.ihr.amdplatform.service.param.AuthParam;
import com.aliexpress.boot.hsf.HsfProperties;
import com.taobao.hsf.app.api.util.HSFApiConsumerBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableConfigurationProperties(HsfProperties.class)
public class AmdpConfig {

    @Value("${amdp.hsf.version}")
    private String version;
    @Value("${amdp.hsf.group}")
    private String group;

    @Value("${amdp.appKey}")
    private String appKey;
    @Value("${amdp.appSecret}")
    private String appSecret;

    @Bean
    public AmdpDataQueryService createAmdpDataQueryService() throws Exception {
        HSFApiConsumerBean bean = new HSFApiConsumerBean();
        bean.setInterfaceName("com.alibaba.ihr.amdplatform.service.api.AmdpDataQueryService");
        bean.setVersion(version);
        bean.setGroup(group);
        bean.init(true);
        return (AmdpDataQueryService) bean.getObject();
    }

    @Bean
    public AuthParam createAuthParam() throws Exception {
        AuthParam authParam = new AuthParam(appKey, appSecret);
        return authParam;
    }

}

*/
